package com.liaoban.app.constants;

/**
 * 接口请求的常量
 * Created by ybc on 2017/7/31.
 */

public class HttpConstant {
    public static final String HTTP_API_ENV = "HTTP_API_ENV";
    public static final String HTTP_API_ENV_DEV = "dev";
    public static final String HTTP_API_ENV_LUCK = "luck";
    public static final String HTTP_API_ENV_RELEASE = "release";

    public static final int CONNECT_TIME_OUT = 15;
    public static final int READ_TIME_OUT = 15;
    public static final int WRITE_TIME_OUT = 15;

    public abstract static class Env {
        public String apiBaseUrl;
    }

    public static class DevEnv extends Env {
        public DevEnv() {
            apiBaseUrl = "http://api.liaobaner.com/api1_0_1/";
        }
    }

    public static class LuckEnv extends Env {
        public LuckEnv() {
            apiBaseUrl = "http://api.liaobaner.com/api1_0_1/";
        }
    }

    public static class ReleaseEnv extends Env {
        public ReleaseEnv() {
            apiBaseUrl = "http://api.liaobaner.com/api1_0_1/";
        }
    }
}